package report

import (
	"fmt"

	"gopkg.in/yaml.v2"
)

type ProcesseInfo struct {
	Total    int `json:"total" yaml:"total"`
	Running  int `json:"running" yaml:"running"`
	Sleeping int `json:"sleeping" yaml:"sleeping"`
	Stopped  int `json:"stopped" yaml:"stopped"`
	Zombie   int `json:"zombie" yaml:"zombie"`
}

func (p ProcesseInfo) Show() {
	out, err := yaml.Marshal(p)
	if err != nil {
		return
	}

	fmt.Printf("processes : %v\n", string(out))

}

func FetchProcessesInfo() ProcesseInfo {
	var info ProcesseInfo

	return info
}
